package com.xy.masterdata.web.controller;

import com.xy.masterdata.facade.HealthCheckFacade;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class HealthCheckController {
    @Reference
    private HealthCheckFacade healthCheckFacade;

    @RequestMapping("/health")
    public String healthStatus() {
        return healthCheckFacade.healthCheck();
    }

}
